<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title><?php echo ($AGENT["name"]); ?></title>
<link href='/meirongtest/Public/Member/css/global.css' rel='stylesheet' type='text/css' />
<link href='/meirongtest/Public/Member/css/main.css' rel='stylesheet' type='text/css' />
<link href='/meirongtest/Public/Member/css/mall.css' rel='stylesheet' type='text/css' />
<script type='text/javascript' src='/meirongtest/Public/Member/js/jquery-1.7.2.min.js'></script>
<script type='text/javascript' src='/meirongtest/Public/Member/js/global.js'></script>
<script type='text/javascript' src='/meirongtest/Public/Member/js/project.js'></script>
<script type='text/javascript'>
var web_domain='/meirongtest';
var static_domain='/meirongtest';
var img_domain='/meirongtest';
var _PUBLIC_ = '/meirongtest/Public';
var _FILE_ = '<?php echo U('Index/ajaxFileUpload');?>';
</script>
<link href='/meirongtest/Public/Member/css/wechat.css' rel='stylesheet' type='text/css' />
<script type='text/javascript' src='/meirongtest/Public/Member/js/wechat.js'></script>
<script type="text/javascript" src="/meirongtest/Public/Member/js/mall.js"></script>
<!--[if lte IE 9]><script src="__PUBIC__/Member/js/jquery.watermark-1.3.js"></script><![endif]-->
<script type='text/javascript' src='/meirongtest/Public/Member/js/operamasks-ui.min.js'></script>
<link href='/meirongtest/Public/Member/css/operamasks-ui.css' rel='stylesheet' type='text/css' />


<script language="javascript">
	$(document).ready(project_obj.addproject); 
</script>


</head>
<body>
<div id="iframe_page">
    <div class="iframe_content"> 
		<div class="r_nav">
		    <ul>
	            <li class="<?php if((ACTION_NAME) == "projectlist"): ?>cur<?php endif; ?>"><a href="<?php echo U('Project/projectlist');?>">作品管理</a></li>
				<li><a href="<?php echo U('Coupon/coupon');?>">优惠券列表</a></li>
				<li class="<?php if((ACTION_NAME) == "review"): ?>cur<?php endif; ?>"><a href="<?php echo U('Review/review');?>">评论列表</a></li>
          	</ul>
		</div>
		
	<div id="products" class="r_con_wrap">
		<form id="projectAdd" class="r_con_form">
			<div class="rows">
				<label>作品名称</label>
				<span class="input">
		        	<input type="text" name="project_name" value="<?php echo ($project["project_name"]); ?>" class="form_input" size="35" maxlength="100" notnull=""> 
		            <font class="fc_red">*</font>
		        </span>
				<div class="clear"></div>
			</div>
			
			<div class="rows">
		        <label>类别</label>
		        <span class="input">
			        <select name="type" notnull="">
				        <option value="">--请选择--</option>
				        	<option value="推荐" <?php if(($project["type"]) == "推荐"): ?>selected<?php endif; ?>>├推荐</option>
				        	<option value="套餐" <?php if(($project["type"]) == "套餐"): ?>selected<?php endif; ?>>├套餐</option>
				        	<option value="面部" <?php if(($project["type"]) == "面部"): ?>selected<?php endif; ?>>├面部</option>
				        	<option value="身体" <?php if(($project["type"]) == "身体"): ?>selected<?php endif; ?>>├身体</option>
			        </select>
			        <font class="fc_red">*</font>
		        </span>
		        <div class="clear"></div>
		    </div>	
	
		    
		     <div class="rows">
				<label>原价</label>
				<span class="input">
		        	<input type="text" name="old_price" value="<?php echo ($project["old_price"]); ?>" class="form_input" size="15" maxlength="100" notnull="">
		            <font class="fc_red">*</font>
		        </span>
				<div class="clear"></div>
			</div>
			
			 <div class="rows">
				<label>现价</label>
				<span class="input">
		        	<input type="text" name="project_price" value="<?php echo ($project["project_price"]); ?>" class="form_input" size="15" maxlength="100" notnull="">
		            <font class="fc_red">*</font>
		        </span>
				<div class="clear"></div>
			</div>
			
		    <div class="rows">
				<label>服务时间</label>
				<span class="input">
		        	<input type="text" name="pib_time" value="<?php echo ($project["pib_time"]); ?>" class="form_input" size="15" maxlength="100" notnull="">分钟
		            <font class="fc_red">*</font>
		        </span>
				<div class="clear"></div>
			</div>
			
			<div class="rows">
				<label>项目介绍</label>
				<span class="input">
		        	<textarea type="text" name="project_intro" class="form_input"  notnull="" style="margin: 0px; width: 350px; height: 200px;resize: none;"><?php echo ($project["project_intro"]); ?></textarea>
		            <font class="fc_red">*</font>
		        </span>
				<div class="clear"></div>
			</div>
		    <div class="rows">
				<label>温馨提示</label>
				<span class="input">
		        	<textarea type="text" name="reminder" class="form_input"  notnull="" style="margin: 0px; width: 350px; height: 200px;resize: none;"><?php echo ($project["reminder"]); ?></textarea>
		            <font class="fc_red">*</font>
		        </span>
				<div class="clear"></div>
			</div>
			<div class="rows">
				<label>封面图片</label>
				<span class="input">
					<span class="upload_file">
						<div>
							<div class="up_input">
							    <input name="ImgUpload" id="ImgUpload" type="file" width="120" height="30" style="display: none;">
							</div>
							<input type="hidden" name="ImgPath" value="<?php echo ($project["headimg"]); ?>">
							
							<div class="clear"></div>
						</div>
						<div class="img" id="ImgDetail">
							<?php if($project['id'] > 0): ?><a href="<?php echo ($project["headimg"]); ?>" target="_blank">
			                   		<img src="<?php echo ($project["headimg"]); ?>">
			                   	</a><?php endif; ?>
						</div>
					
					</span>
				</span>
			<div class="clear"></div>
			</div>
		    <div class="rows">
            <label>产品展示</label>
            <span class="input">
                <span class="upload_file">
                    <div>
                        <div class="up_input"><input name="PicUpload" id="PicUpload" type="file" /></div>
                        <div class="tips">共可上传<span id="pic_count">5</span>张图片，图片大小建议：250*150像素</div>
                        <div class="clear"></div>
                    </div>
                </span>
                <div class="img" id="PicDetail">   
                    <?php if(is_array($project["product_slider"])): foreach($project["product_slider"] as $key=>$vv): ?><div>
                        <a href="<?php echo ($vv); ?>" target="_blank">
                            <img src="<?php echo ($vv); ?>"></a>
                            <span>删除</span>
                            <input type="hidden" name="PicPath[]" value="<?php echo ($vv); ?>">
                        </div><?php endforeach; endif; ?>
                </div>
            </span>
            <div class="clear"></div>
        </div>
        <div class="rows">
            <label>步骤展示</label>
            <span class="input">
                <span class="upload_file">
                    <div>
                        <div class="up_input"><input name="PicUpload2" id="PicUpload2" type="file" /></div>
                        <div class="tips">共可上传<span id="pic_count2">5</span>张图片，图片大小建议：250*150像素</div>
                        <div class="clear"></div>
                    </div>
                </span>
                <div class="img" id="PicDetail2">   
                    <?php if(is_array($project["step_slider"])): foreach($project["step_slider"] as $key=>$vv): ?><div>
                        <a href="<?php echo ($vv); ?>" target="_blank">
                            <img src="<?php echo ($vv); ?>"></a>
                            <span>删除</span>
                            <input type="hidden" name="PicPath2[]" value="<?php echo ($vv); ?>">
                        </div><?php endforeach; endif; ?>
                </div>
            </span>
            <div class="clear"></div>
        </div>
			<div class="rows">
				<label></label>
				<span class="input">
		        	<input type="button" class="btn_ok" id="submit" name="submit_button" value="提交保存">
		        	<a href="<?php echo U('projectlist');?>" class="btn_cancel">返回</a>
		         </span>
				<div class="clear"></div>
			</div>
		
		<input type="hidden" id="do_action" value="<?php echo U('Feed/feedAdd');?>">
		<input type="hidden" id="link_jump" value="<?php echo U('Feed/feed');?>">
		<input type="hidden" name="id" value="<?php echo ($project["id"]); ?>">
		</form>
	</div>


	</div>
</div>
</body>
</html>